
import { API_CONFIG } from "../config/index.js";
import request from './index.js'
// DaemonSet操作
export const getDaemonSetListHandler = (clusterId, namespace) => {
    return request(API_CONFIG.getDaemonSetListApi, {clusterId, namespace}, "get", 2000)
}

export const deleteDaemonSetHandler = (clusterId, namespace, name) => {
    return request(API_CONFIG.deleteDaemonSetApi, {clusterId, namespace, name}, "post", 2000)
}

export const createDaemonSetHandler = (data) => {
    return request(API_CONFIG.createDaemonSetApi, data, "post", 2000)
}

export const updateDaemonSetHandler = (data) => {
    return request(API_CONFIG.updateDaemonSetApi, data, "post", 2000)
}

export const getDaemonSetDetailHandler = (data) => {
    return request(API_CONFIG.getDaemonSetApi, data, "get", 3000)
}